package net.kevin.demo.hessian.service.impl;

import org.springframework.stereotype.Service;

import net.kevin.demo.hessian.service.BasicAPI;

@Service
public class BasicAPIImpl implements BasicAPI {

	@Override
	public String sayHello() {
		System.out.println(">>>>hello from server");
		return "kevin say kello";
	}
	
	@Override
	public BasicAPI getBasicAPI2(){
		return new  BasicAPI() {			
			@Override
			public String sayHello() {
				return "卖报纸的小女孩";
			}
			
			@Override
			public BasicAPI getBasicAPI2() {
				return this;
			}
		};
	}
}
